<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.util.collection.model.Set</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.util.collection.model.Set";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.util.collection.model.Set.html" class="symbol">tango.util.collection.model.Set</a></h1>
  
<dl>
<dt class="decl">interface <a class="symbol _interface" name="Set" href="./htmlsrc/tango.util.collection.model.Set.html#L35" kind="interface" beg="35" end="69">Set</a><span class="tparams">(T)</span> : SetView!(T), Dispenser!(T); <a title="Permalink to this symbol" href="#Set" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.Set.html#L35">#</a></dt>
<dd class="ddef">
<div class="summary">MutableSets support an include operations to add
 an element only if it not present.</div>
<p class="sec_header">Author:</p>Doug Lea
 @version 0.93
<p class="bl"/>
 <P> For an introduction to this package see <A HREF="index.html"> Overview </A>.
<dl>
<dt class="decl">void <a class="symbol _function" name="Set.add" href="./htmlsrc/tango.util.collection.model.Set.html#L53" kind="function" beg="53" end="53">add</a><span class="params">(T <em>element</em>)</span>; <span class="attrs">[<span class="prot">public</span>]</span> <a title="Permalink to this symbol" href="#Set.add" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.Set.html#L53">#</a></dt>
<dd class="ddef">
<div class="summary">Include the indicated element in the collection.
 No effect if the element is already present.
 @param element the element to add</div>
<p class="sec_header">Returns:</p>condition: 
 <PRE>
 has(element) &amp;&amp;
 no spurious effects &amp;&amp;
 Version change iff !PREV(this).has(element)
 </PRE>
<p class="sec_header">Throws:</p>IllegalElementException if !canInclude(element)</dd>
<dt class="decl">void <a class="symbol _function" name="Set.add:2" href="./htmlsrc/tango.util.collection.model.Set.html#L67" kind="function" beg="67" end="67">add</a><span class="params">(Iterator!(T) <em>e</em>)</span>; <span class="attrs">[<span class="prot">public</span>]</span> <a title="Permalink to this symbol" href="#Set.add:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.Set.html#L67">#</a></dt>
<dd class="ddef">
<div class="summary">Include all elements of the enumeration in the collection.
 Behaviorally equivalent to
 <PRE>
 while (e.more()) include(e.get());
 </PRE>
 @param e the elements to include</div>
<p class="sec_header">Throws:</p>IllegalElementException if !canInclude(element)
<p class="sec_header">Throws:</p>CorruptedIteratorException propagated if thrown</dd></dl></dd></dl>
</div>
<div id="footer">
  <p></p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:09 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>